package com.cgah.api

import com.cgah.exceptions.ListingNotFoundException

/**
 * Created by IntelliJ IDEA.
 * User: chue
 * Date: 5/1/11
 * Time: 8:05 PM
 * To change this template use File | Settings | File Templates.
 */
public interface ListingService {

    def create(def params)

     def save(def params, def userName, def password)

    def save(def params, def seller)

    def list(def params, def userName, def password)

    def list(def params)

    def listAllForUser(def params, def userName, def password)

    def listAllForUser(def params, def userId)

    def getListingById(def id, def userName, def password) throws ListingNotFoundException

    def getListingById(def id) throws ListingNotFoundException

    def updateListing(def params, def userName, def password) throws ListingNotFoundException

    def updateListing(def params) throws ListingNotFoundException

    def lastBids(def id, def max, def userName, def password)

    def lastBids(def id, def max)

    def getExpiredListings()
}